Termination w.r.t. Q of the following Term Rewriting System could not be shown:

Q restricted rewrite system:
The TRS R consists of the following rules:

function4(iszero, 0, dummy, dummy2) -> true
function4(iszero, s1(x), dummy, dummy2) -> false
function4(p, 0, dummy, dummy2) -> 0
function4(p, s1(0), dummy, dummy2) -> 0
function4(p, s1(s1(x)), dummy, dummy2) -> s1(function4(p, s1(x), x, x))
function4(plus, dummy, x, y) -> function4(if, function4(iszero, x, x, x), x, y)
function4(if, true, x, y) -> y
function4(if, false, x, y) -> function4(plus, function4(third, x, y, y), function4(p, x, x, y), s1(y))
function4(third, x, y, z) -> z

Q is empty.


QTRS
  ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

function4(iszero, 0, dummy, dummy2) -> true
function4(iszero, s1(x), dummy, dummy2) -> false
function4(p, 0, dummy, dummy2) -> 0
function4(p, s1(0), dummy, dummy2) -> 0
function4(p, s1(s1(x)), dummy, dummy2) -> s1(function4(p, s1(x), x, x))
function4(plus, dummy, x, y) -> function4(if, function4(iszero, x, x, x), x, y)
function4(if, true, x, y) -> y
function4(if, false, x, y) -> function4(plus, function4(third, x, y, y), function4(p, x, x, y), s1(y))
function4(third, x, y, z) -> z

Q is empty.

Using Dependency Pairs [1,13] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

FUNCTION4(plus, dummy, x, y) -> FUNCTION4(if, function4(iszero, x, x, x), x, y)
FUNCTION4(if, false, x, y) -> FUNCTION4(plus, function4(third, x, y, y), function4(p, x, x, y), s1(y))
FUNCTION4(plus, dummy, x, y) -> FUNCTION4(iszero, x, x, x)
FUNCTION4(if, false, x, y) -> FUNCTION4(p, x, x, y)
FUNCTION4(p, s1(s1(x)), dummy, dummy2) -> FUNCTION4(p, s1(x), x, x)
FUNCTION4(if, false, x, y) -> FUNCTION4(third, x, y, y)

The TRS R consists of the following rules:

function4(iszero, 0, dummy, dummy2) -> true
function4(iszero, s1(x), dummy, dummy2) -> false
function4(p, 0, dummy, dummy2) -> 0
function4(p, s1(0), dummy, dummy2) -> 0
function4(p, s1(s1(x)), dummy, dummy2) -> s1(function4(p, s1(x), x, x))
function4(plus, dummy, x, y) -> function4(if, function4(iszero, x, x, x), x, y)
function4(if, true, x, y) -> y
function4(if, false, x, y) -> function4(plus, function4(third, x, y, y), function4(p, x, x, y), s1(y))
function4(third, x, y, z) -> z

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ DependencyPairsProof
QDP
      ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

FUNCTION4(plus, dummy, x, y) -> FUNCTION4(if, function4(iszero, x, x, x), x, y)
FUNCTION4(if, false, x, y) -> FUNCTION4(plus, function4(third, x, y, y), function4(p, x, x, y), s1(y))
FUNCTION4(plus, dummy, x, y) -> FUNCTION4(iszero, x, x, x)
FUNCTION4(if, false, x, y) -> FUNCTION4(p, x, x, y)
FUNCTION4(p, s1(s1(x)), dummy, dummy2) -> FUNCTION4(p, s1(x), x, x)
FUNCTION4(if, false, x, y) -> FUNCTION4(third, x, y, y)

The TRS R consists of the following rules:

function4(iszero, 0, dummy, dummy2) -> true
function4(iszero, s1(x), dummy, dummy2) -> false
function4(p, 0, dummy, dummy2) -> 0
function4(p, s1(0), dummy, dummy2) -> 0
function4(p, s1(s1(x)), dummy, dummy2) -> s1(function4(p, s1(x), x, x))
function4(plus, dummy, x, y) -> function4(if, function4(iszero, x, x, x), x, y)
function4(if, true, x, y) -> y
function4(if, false, x, y) -> function4(plus, function4(third, x, y, y), function4(p, x, x, y), s1(y))
function4(third, x, y, z) -> z

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [13,14,18] contains 2 SCCs with 3 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
QDP
            ↳ QDPOrderProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

FUNCTION4(p, s1(s1(x)), dummy, dummy2) -> FUNCTION4(p, s1(x), x, x)

The TRS R consists of the following rules:

function4(iszero, 0, dummy, dummy2) -> true
function4(iszero, s1(x), dummy, dummy2) -> false
function4(p, 0, dummy, dummy2) -> 0
function4(p, s1(0), dummy, dummy2) -> 0
function4(p, s1(s1(x)), dummy, dummy2) -> s1(function4(p, s1(x), x, x))
function4(plus, dummy, x, y) -> function4(if, function4(iszero, x, x, x), x, y)
function4(if, true, x, y) -> y
function4(if, false, x, y) -> function4(plus, function4(third, x, y, y), function4(p, x, x, y), s1(y))
function4(third, x, y, z) -> z

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be oriented strictly and are deleted.


FUNCTION4(p, s1(s1(x)), dummy, dummy2) -> FUNCTION4(p, s1(x), x, x)
The remaining pairs can at least be oriented weakly.
none
Used ordering: Polynomial interpretation [21]:

POL(FUNCTION4(x1, x2, x3, x4)) = x2   
POL(p) = 0   
POL(s1(x1)) = 1 + 2·x1   

The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ PisEmptyProof
          ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

function4(iszero, 0, dummy, dummy2) -> true
function4(iszero, s1(x), dummy, dummy2) -> false
function4(p, 0, dummy, dummy2) -> 0
function4(p, s1(0), dummy, dummy2) -> 0
function4(p, s1(s1(x)), dummy, dummy2) -> s1(function4(p, s1(x), x, x))
function4(plus, dummy, x, y) -> function4(if, function4(iszero, x, x, x), x, y)
function4(if, true, x, y) -> y
function4(if, false, x, y) -> function4(plus, function4(third, x, y, y), function4(p, x, x, y), s1(y))
function4(third, x, y, z) -> z

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
QDP

Q DP problem:
The TRS P consists of the following rules:

FUNCTION4(plus, dummy, x, y) -> FUNCTION4(if, function4(iszero, x, x, x), x, y)
FUNCTION4(if, false, x, y) -> FUNCTION4(plus, function4(third, x, y, y), function4(p, x, x, y), s1(y))

The TRS R consists of the following rules:

function4(iszero, 0, dummy, dummy2) -> true
function4(iszero, s1(x), dummy, dummy2) -> false
function4(p, 0, dummy, dummy2) -> 0
function4(p, s1(0), dummy, dummy2) -> 0
function4(p, s1(s1(x)), dummy, dummy2) -> s1(function4(p, s1(x), x, x))
function4(plus, dummy, x, y) -> function4(if, function4(iszero, x, x, x), x, y)
function4(if, true, x, y) -> y
function4(if, false, x, y) -> function4(plus, function4(third, x, y, y), function4(p, x, x, y), s1(y))
function4(third, x, y, z) -> z

Q is empty.
We have to consider all minimal (P,Q,R)-chains.